﻿using System;

namespace Songhay.Models
{
    /// <summary>
    /// Defines the conventional Blog entry.
    /// </summary>
    public class BlogEntry
    {
        /// <summary>
        /// Gets or sets the author.
        /// </summary>
        /// <value>
        /// The author.
        /// </value>
        public string Author { get; set; }

        /// <summary>
        /// Gets or sets the content.
        /// </summary>
        /// <value>
        /// The content.
        /// </value>
        public string Content { get; set; }

        /// <summary>
        /// Gets or sets the incept date.
        /// </summary>
        /// <value>
        /// The incept date.
        /// </value>
        public DateTime InceptDate { get; set; }

        /// <summary>
        /// Gets or sets the published state.
        /// </summary>
        /// <value>
        /// The published state.
        /// </value>
        public bool? IsPublished { get; set; }

        /// <summary>
        /// Gets or sets the slug.
        /// </summary>
        /// <value>
        /// The slug.
        /// </value>
        public string Slug { get; set; }

        /// <summary>
        /// Gets or sets the title.
        /// </summary>
        /// <value>
        /// The title.
        /// </value>
        public string Title { get; set; }

        /// <summary>
        /// Converts this instance into a string.
        /// </summary>
        public override string ToString()
        {
            return this.Title;
        }
    }
}
